import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isLogin:false,
    userinfo:null,
    shopinfo:null,
  },
  mutations: {
    updateUserinfo(state,payloade){
      state.isLogin = true
      state.userinfo = payloade
    },
    quite(state){
    state.isLogin = false
    state.userinfo = null
    },
  },
  actions: {
  },
  modules: {
  }
})
